// 商品分类接口

import axios from "../utils/request";

// 新增分类数据
export const addCategory = (param) =>
  axios({
    url: "/category/add",
    method: "post",
    data: param,
  });
// 分类数据
export const listCategory = (param) =>
  axios({
    url: "/category/index",
    method: "post",
    data: param,
  });
// 修改分类数据
export const editCategory = (param) =>
  axios({
    url: "/category/edit",
    method: "post",
    data: param,
  });
//获取一级分类
export const getClassif = (param) =>
  axios({
    url: "/category/getClassif",
    method: "post",
    data: param,
  });
